package io.mybatis.example.springboot.model;

import io.mybatis.provider.Entity;
import org.apache.ibatis.type.JdbcType;

import lombok.Getter;
import lombok.Setter;

import java.util.Date;

/**
 * sys_job_log - 定时任务调度日志表
 *
 * @author mkj
 */
@Getter
@Setter
@Entity.Table("sys_job_log" remark = "定时任务调度日志表", autoResultMap = true)
public class SysJobLogDO {
  @Entity.Column(value = "job_log_id", id = true, remark = "任务日志ID", updatable = false, insertable = false)
  private Long jobLogId;

  @Entity.Column(value = "job_name", remark = "任务名称")
  private String jobName;

  @Entity.Column(value = "job_group", remark = "任务组名")
  private String jobGroup;

  @Entity.Column(value = "invoke_target", remark = "调用目标字符串")
  private String invokeTarget;

  @Entity.Column(value = "job_message", remark = "日志信息")
  private String jobMessage;

  @Entity.Column(value = "status", remark = "执行状态（0正常 1失败）")
  private String status;

  @Entity.Column(value = "exception_info", remark = "异常信息")
  private String exceptionInfo;

  @Entity.Column(value = "create_time", remark = "创建时间", jdbcType = JdbcType.TIMESTAMP)
  private Date createTime;

}
